package annotation;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Component
@Repository
public class EmpDaoImpl implements EmpDao{
    @Value("zhangsan")
    private String username;
    public EmpDaoImpl(){
        System.out.println("EmpDaoImpl执行");
    }

    @Override
    public void show() {
        System.out.println(username);
    }
}
